package research.domain;

import research.entity.Entity;
import research.entity.EntityType;

public final class TestResult extends Entity {
	private String sample;
	private Double value;
	private String parameter;

	public TestResult() {
		super(EntityType.TestResult);
	}

	@Override
	public String getDisplayName() {
		return sample + ": " + parameter;
	}

	public String getSample() {
		return sample;
	}

	public void setSample(String sample) {
		this.sample = sample;
	}

	public Double getValue() {
		return value;
	}

	public void setValue(Double value) {
		this.value = value;
	}

	public String getParameter() {
		return parameter;
	}

	public void setParameter(String parameter) {
		this.parameter = parameter;
	}

	public static TestResult getNew() {
		TestResult p = new TestResult();
		p.setSample("");
		p.setParameter("");
		return p;
	}
}
